package com.microhousekeeper.service.banner;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;

import com.microhousekeeper.wx.WxBannerContentActivity;

public class BannerOnClickListener implements OnClickListener {
	
	private Context context;
	private Activity activity;
	private int index;
	
	public BannerOnClickListener(Context context, Activity activity, int index) {
		this.context = context;
		this.activity = activity;
		this.index = index;
	}
	
	@Override
	public void onClick(View v) {
		Intent intent = new Intent(activity, WxBannerContentActivity.class);
		System.out.println("banner index:" + this.index);
		intent.putExtra("index", String.valueOf(this.index));
		activity.startActivity(intent);
	}

}
